package com.wang.exam.service;

import com.wang.exam.mapper.TestQuestionsMapper;
import com.wang.exam.pojo.ExaminationSubjects;
import com.wang.exam.pojo.JavaWebExam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TestQuestionsService {
    //查询考试试题
    @Autowired
    TestQuestionsMapper testQuestionsMapper;
    public List<ExaminationSubjects> getTestName(Integer course_id){
        return testQuestionsMapper.getTestName(course_id);
    }
    public List<JavaWebExam> getAllQuestion(String test_name){
        return testQuestionsMapper.getAllQuestion(test_name);
    }

}
